﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DSServer
{
    public partial class Program
    {
        public static void DoCommand(string command)
        {
            string[] tokens = command.Split(' ');

            switch (tokens[0])
            {
                case "quit":
                case "exit":
                    quit = true;
                    break;

                case "?":
                case "help":
                    PrintCommands();
                    break;

                case "clients":
                    Console.WriteLine("Connected clients: " + GetClientList());
                    break;

                default:
                    Console.WriteLine("Invalid command.");
                    break;
            }
        }
    }
}
